package com.tbit.uqbike.webmanager.dao.log;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.object.pojo.DispatchApplyLog;
import com.tbit.uqbike.object.pojo.DispatchApplyMachine;
import com.tbit.uqbike.object.pojo.vo.DispatchApplyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author yee_
 * @version 1.0
 * @date 2023/2/13 19:26
 */
@Mapper
@DS(DataSource.LOG)
public interface DispatchApplyLogDao extends BaseMapper<DispatchApplyLog> {

    /**
     * 调度申请分页查询
     *
     * @param queryMap 。
     * @return 。
     */
    List<DispatchApplyVO> listPage(Map<String, Object> queryMap);


    List<DispatchApplyVO> queryAll(Map<String, Object> queryMap);

    /**
     * 根据调度申请id查询调度设备
     *
     * @param applyId 调度id
     * @return 调度设备列表
     */
    List<DispatchApplyMachine> listDispatchMachineByApplyId(@Param("applyId") Integer applyId);
}
